package com.hsc.www.amqp.util;

import java.io.Serializable;
import java.util.Date;

/**
 * <p><b>Description:</b> 常量类 <p>
 * <b>Company:</b>
 *
 * @author created by hongda at 22:49 on 2017-10-23
 * @version V0.1
 */
public class RabbitMetaMessage<T> implements Serializable {

    String exchange;

    String routingKey;

    String messageId;

    String bizName;

    Date prepareSendTime;

    Date sendTime;

    T payload;

    public RabbitMetaMessage() {

    }

    public String getBizName() {
        return bizName;
    }

    public void setBizName(String bizName) {
        this.bizName = bizName;
    }

    public Date getPrepareSendTime() {
        return prepareSendTime;
    }

    public void setPrepareSendTime(Date prepareSendTime) {
        this.prepareSendTime = prepareSendTime;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public T getPayload() {
        return payload;
    }

    public void setPayload(T payload) {
        this.payload = payload;
    }

    @Override
    public String toString() {
        return "RabbitMetaMessage{" +
                "exchange='" + exchange + '\'' +
                ", routingKey='" + routingKey + '\'' +
                ", messageId='" + messageId + '\'' +
                ", bizName='" + bizName + '\'' +
                ", prepareSendTime=" + prepareSendTime +
                ", sendTime=" + sendTime +
                ", payload=" + payload +
                '}';
    }
}
